searchengine: Rename private headers
authorBenjamin Otte <otte@redhat.com>
Sun, 29 Aug 2021 04:10:31 +0000 (06:10 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 29 Aug 2021 04:52:28 +0000 (06:52 +0200)
The code uses G_TYPE_POINTER and I got all sorts of scared.

13 files changed:
gtk/gtkfilechooserprivate.h
gtk/gtksearchengine.c
gtk/gtksearchengine.h [deleted file]
gtk/gtksearchenginemodel.c
gtk/gtksearchenginemodel.h [deleted file]
gtk/gtksearchenginemodelprivate.h [new file with mode: 0644]
gtk/gtksearchengineprivate.h [new file with mode: 0644]
gtk/gtksearchenginequartz.c
gtk/gtksearchenginequartz.h [deleted file]
gtk/gtksearchenginequartzprivate.h [new file with mode: 0644]
gtk/gtksearchenginetracker3.c
gtk/gtksearchenginetracker3.h [deleted file]
gtk/gtksearchenginetracker3private.h [new file with mode: 0644]

index 3042fb029b0a2890545af74a2dd75f8e81f4bb42..7b47b416b371c16d742498d41ba1f50df45eb517 100644 (file)
@@ -23,7 +23,7 @@
 #include "gtkfilesystemmodel.h"
 #include "gtkliststore.h"
 #include "gtkrecentmanager.h"
-#include "gtksearchengine.h"
+#include "gtksearchengineprivate.h"
 #include "gtkquery.h"
 #include "gtksizegroup.h"
 #include "gtktreemodelsort.h"
index 6dc241d78913342925e7a4103407c48b49c508fe..73b14aa5e8d3276f1c99403ebb4d315dcc64c072 100644 (file)
  */
 
 #include "config.h"
-#include "gtksearchengine.h"
-#include "gtksearchenginemodel.h"
-#include "gtksearchenginequartz.h"
+#include "gtksearchengineprivate.h"
+#include "gtksearchenginemodelprivate.h"
+#include "gtksearchenginequartzprivate.h"
 #include "gtkintl.h"
 
 #include <gdk/gdk.h> /* for GDK_WINDOWING_MACOS */
 
 #if defined(HAVE_TRACKER3)
-#include "gtksearchenginetracker3.h"
+#include "gtksearchenginetracker3private.h"
 #endif
 
 struct _GtkSearchEnginePrivate {
diff --git a/gtk/gtksearchengine.h b/gtk/gtksearchengine.h
deleted file mode 100644 (file)
index e23e197..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Copyright (C) 2005 Novell, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- *
- * Author: Anders Carlsson <andersca@imendio.com> 
- *
- * Based on nautilus-search-engine.h
- */
-
-#ifndef __GTK_SEARCH_ENGINE_H__
-#define __GTK_SEARCH_ENGINE_H__
-
-#include "gtkquery.h"
-#include "gtkfilesystemmodel.h"
-#include <gio/gio.h>
-
-G_BEGIN_DECLS
-
-#define GTK_TYPE_SEARCH_ENGINE         (_gtk_search_engine_get_type ())
-#define GTK_SEARCH_ENGINE(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngine))
-#define GTK_SEARCH_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngineClass))
-#define GTK_IS_SEARCH_ENGINE(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENGINE))
-#define GTK_IS_SEARCH_ENGINE_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENGINE))
-#define GTK_SEARCH_ENGINE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngineClass))
-
-typedef struct _GtkSearchEngine GtkSearchEngine;
-typedef struct _GtkSearchEngineClass GtkSearchEngineClass;
-typedef struct _GtkSearchEnginePrivate GtkSearchEnginePrivate;
-typedef struct _GtkSearchHit GtkSearchHit;
-
-G_DEFINE_AUTOPTR_CLEANUP_FUNC (GtkSearchEngine, g_object_unref)
-
-struct _GtkSearchHit
-{
-  GFile *file;
-  GFileInfo *info; /* may be NULL */
-};
-
-struct _GtkSearchEngine
-{
-  GObject parent;
-
-  GtkSearchEnginePrivate *priv;
-};
-
-struct _GtkSearchEngineClass 
-{
-  GObjectClass parent_class;
-  
-  /* VTable */
-  void     (*set_query)       (GtkSearchEngine *engine, 
-                              GtkQuery        *query);
-  void     (*start)           (GtkSearchEngine *engine);
-  void     (*stop)            (GtkSearchEngine *engine);
-  
-  /* Signals */
-  void     (*hits_added)      (GtkSearchEngine *engine, 
-                              GList           *hits);
-  void     (*finished)        (GtkSearchEngine *engine);
-  void     (*error)           (GtkSearchEngine *engine, 
-                              const char      *error_message);
-};
-
-GType            _gtk_search_engine_get_type        (void);
-
-GtkSearchEngine* _gtk_search_engine_new             (void);
-
-void             _gtk_search_engine_set_query       (GtkSearchEngine *engine, 
-                                                     GtkQuery        *query);
-void            _gtk_search_engine_start           (GtkSearchEngine *engine);
-void            _gtk_search_engine_stop            (GtkSearchEngine *engine);
-
-void            _gtk_search_engine_hits_added      (GtkSearchEngine *engine, 
-                                                    GList           *hits);
-void             _gtk_search_engine_finished        (GtkSearchEngine *engine,
-                                                     gboolean         got_results);
-void            _gtk_search_engine_error           (GtkSearchEngine *engine, 
-                                                    const char      *error_message);
-
-void             _gtk_search_hit_free (GtkSearchHit *hit);
-GtkSearchHit    *_gtk_search_hit_dup (GtkSearchHit *hit);
-
-void             _gtk_search_engine_set_model       (GtkSearchEngine    *engine,
-                                                     GtkFileSystemModel *model);
-
-G_END_DECLS
-
-#endif /* __GTK_SEARCH_ENGINE_H__ */
index af85e56c51d024c91b3ee5c253c8bc88006612d4..e4dc7ad004ad4cc5f8cb963957cd92d2afce0ae0 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <gdk/gdk.h>
 
-#include "gtksearchenginemodel.h"
+#include "gtksearchenginemodelprivate.h"
 #include "gtkprivate.h"
 
 #include <string.h>
diff --git a/gtk/gtksearchenginemodel.h b/gtk/gtksearchenginemodel.h
deleted file mode 100644 (file)
index a7cedab..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (C) 2015 Red Hat, Inc
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- *
- * Author: Matthias Clasen
- */
-
-#ifndef __GTK_SEARCH_ENGINE_MODEL_H__
-#define __GTK_SEARCH_ENGINE_MODEL_H__
-
-#include "gtksearchengine.h"
-#include "gtkfilesystemmodel.h"
-
-G_BEGIN_DECLS
-
-#define GTK_TYPE_SEARCH_ENGINE_MODEL           (_gtk_search_engine_model_get_type ())
-#define GTK_SEARCH_ENGINE_MODEL(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENGINE_MODEL, GtkSearchEngineModel))
-#define GTK_SEARCH_ENGINE_MODEL_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENGINE_MODEL, GtkSearchEngineModelClass))
-#define GTK_IS_SEARCH_ENGINE_MODEL(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENGINE_MODEL))
-#define GTK_IS_SEARCH_ENGINE_MODEL_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENGINE_MODEL))
-#define GTK_SEARCH_ENGINE_MODEL_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENGINE_MODEL, GtkSearchEngineModelClass))
-
-typedef struct _GtkSearchEngineModel GtkSearchEngineModel;
-typedef struct _GtkSearchEngineModelClass GtkSearchEngineModelClass;
-
-GType            _gtk_search_engine_model_get_type (void);
-
-GtkSearchEngine *_gtk_search_engine_model_new      (GtkFileSystemModel *model);
-
-G_END_DECLS
-
-#endif /* __GTK_SEARCH_ENGINE_MODEL_H__ */
diff --git a/gtk/gtksearchenginemodelprivate.h b/gtk/gtksearchenginemodelprivate.h
new file mode 100644 (file)
index 0000000..f0b9dcf
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2015 Red Hat, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Author: Matthias Clasen
+ */
+
+#ifndef __GTK_SEARCH_ENGINE_MODEL_H__
+#define __GTK_SEARCH_ENGINE_MODEL_H__
+
+#include "gtksearchengineprivate.h"
+#include "gtkfilesystemmodel.h"
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_SEARCH_ENGINE_MODEL           (_gtk_search_engine_model_get_type ())
+#define GTK_SEARCH_ENGINE_MODEL(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENGINE_MODEL, GtkSearchEngineModel))
+#define GTK_SEARCH_ENGINE_MODEL_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENGINE_MODEL, GtkSearchEngineModelClass))
+#define GTK_IS_SEARCH_ENGINE_MODEL(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENGINE_MODEL))
+#define GTK_IS_SEARCH_ENGINE_MODEL_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENGINE_MODEL))
+#define GTK_SEARCH_ENGINE_MODEL_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENGINE_MODEL, GtkSearchEngineModelClass))
+
+typedef struct _GtkSearchEngineModel GtkSearchEngineModel;
+typedef struct _GtkSearchEngineModelClass GtkSearchEngineModelClass;
+
+GType            _gtk_search_engine_model_get_type (void);
+
+GtkSearchEngine *_gtk_search_engine_model_new      (GtkFileSystemModel *model);
+
+G_END_DECLS
+
+#endif /* __GTK_SEARCH_ENGINE_MODEL_H__ */
diff --git a/gtk/gtksearchengineprivate.h b/gtk/gtksearchengineprivate.h
new file mode 100644 (file)
index 0000000..e23e197
--- /dev/null
@@ -0,0 +1,100 @@
+/*
+ * Copyright (C) 2005 Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Author: Anders Carlsson <andersca@imendio.com> 
+ *
+ * Based on nautilus-search-engine.h
+ */
+
+#ifndef __GTK_SEARCH_ENGINE_H__
+#define __GTK_SEARCH_ENGINE_H__
+
+#include "gtkquery.h"
+#include "gtkfilesystemmodel.h"
+#include <gio/gio.h>
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_SEARCH_ENGINE         (_gtk_search_engine_get_type ())
+#define GTK_SEARCH_ENGINE(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngine))
+#define GTK_SEARCH_ENGINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngineClass))
+#define GTK_IS_SEARCH_ENGINE(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENGINE))
+#define GTK_IS_SEARCH_ENGINE_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENGINE))
+#define GTK_SEARCH_ENGINE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENGINE, GtkSearchEngineClass))
+
+typedef struct _GtkSearchEngine GtkSearchEngine;
+typedef struct _GtkSearchEngineClass GtkSearchEngineClass;
+typedef struct _GtkSearchEnginePrivate GtkSearchEnginePrivate;
+typedef struct _GtkSearchHit GtkSearchHit;
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GtkSearchEngine, g_object_unref)
+
+struct _GtkSearchHit
+{
+  GFile *file;
+  GFileInfo *info; /* may be NULL */
+};
+
+struct _GtkSearchEngine
+{
+  GObject parent;
+
+  GtkSearchEnginePrivate *priv;
+};
+
+struct _GtkSearchEngineClass 
+{
+  GObjectClass parent_class;
+  
+  /* VTable */
+  void     (*set_query)       (GtkSearchEngine *engine, 
+                              GtkQuery        *query);
+  void     (*start)           (GtkSearchEngine *engine);
+  void     (*stop)            (GtkSearchEngine *engine);
+  
+  /* Signals */
+  void     (*hits_added)      (GtkSearchEngine *engine, 
+                              GList           *hits);
+  void     (*finished)        (GtkSearchEngine *engine);
+  void     (*error)           (GtkSearchEngine *engine, 
+                              const char      *error_message);
+};
+
+GType            _gtk_search_engine_get_type        (void);
+
+GtkSearchEngine* _gtk_search_engine_new             (void);
+
+void             _gtk_search_engine_set_query       (GtkSearchEngine *engine, 
+                                                     GtkQuery        *query);
+void            _gtk_search_engine_start           (GtkSearchEngine *engine);
+void            _gtk_search_engine_stop            (GtkSearchEngine *engine);
+
+void            _gtk_search_engine_hits_added      (GtkSearchEngine *engine, 
+                                                    GList           *hits);
+void             _gtk_search_engine_finished        (GtkSearchEngine *engine,
+                                                     gboolean         got_results);
+void            _gtk_search_engine_error           (GtkSearchEngine *engine, 
+                                                    const char      *error_message);
+
+void             _gtk_search_hit_free (GtkSearchHit *hit);
+GtkSearchHit    *_gtk_search_hit_dup (GtkSearchHit *hit);
+
+void             _gtk_search_engine_set_model       (GtkSearchEngine    *engine,
+                                                     GtkFileSystemModel *model);
+
+G_END_DECLS
+
+#endif /* __GTK_SEARCH_ENGINE_H__ */
index a5cea53d0051dc388d1688c609762a8d6c582d43..97edc702fc75f2a5508df53a09445400cc69e52c 100644 (file)
@@ -18,7 +18,7 @@
 #include <Cocoa/Cocoa.h>
 #include <macos/gdkmacos.h>
 
-#include "gtksearchenginequartz.h"
+#include "gtksearchenginequartzprivate.h"
 
 /* This file is a mixture of an objective-C object and a GObject,
  * so be careful to not confuse yourself.
diff --git a/gtk/gtksearchenginequartz.h b/gtk/gtksearchenginequartz.h
deleted file mode 100644 (file)
index 1cb8739..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (C) 2007  Kristian Rietveld  <kris@gtk.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __GTK_SEARCH_ENGINE_QUARTZ_H__
-#define __GTK_SEARCH_ENGINE_QUARTZ_H__
-
-#include "gtksearchengine.h"
-
-G_BEGIN_DECLS
-
-#define GTK_TYPE_SEARCH_ENGINE_QUARTZ                  (_gtk_search_engine_quartz_get_type ())
-#define GTK_SEARCH_ENGINE_QUARTZ(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartz))
-#define GTK_SEARCH_ENGINE_QUARTZ_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartzClass))
-#define GTK_IS_SEARCH_ENGINE_QUARTZ(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ))
-#define GTK_IS_SEARCH_ENGINE_QUARTZ_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENGINE_QUARTZ))
-#define GTK_SEARCH_ENGINE_QUARTZ_GET_CLASS(obj)                (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartzClass))
-
-typedef struct _GtkSearchEngineQuartz GtkSearchEngineQuartz;
-typedef struct _GtkSearchEngineQuartzClass GtkSearchEngineQuartzClass;
-typedef struct _GtkSearchEngineQuartzPrivate GtkSearchEngineQuartzPrivate;
-
-struct _GtkSearchEngineQuartz
-{
-  GtkSearchEngine parent;
-
-  GtkSearchEngineQuartzPrivate *priv;
-};
-
-struct _GtkSearchEngineQuartzClass
-{
-  GtkSearchEngineClass parent_class;
-};
-
-GType            _gtk_search_engine_quartz_get_type (void);
-GtkSearchEngine *_gtk_search_engine_quartz_new      (void);
-
-G_END_DECLS
-
-#endif /* __GTK_SEARCH_ENGINE_QUARTZ_H__ */
diff --git a/gtk/gtksearchenginequartzprivate.h b/gtk/gtksearchenginequartzprivate.h
new file mode 100644 (file)
index 0000000..c74b579
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * Copyright (C) 2007  Kristian Rietveld  <kris@gtk.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_SEARCH_ENGINE_QUARTZ_H__
+#define __GTK_SEARCH_ENGINE_QUARTZ_H__
+
+#include "gtksearchengineprivate.h"
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_SEARCH_ENGINE_QUARTZ                  (_gtk_search_engine_quartz_get_type ())
+#define GTK_SEARCH_ENGINE_QUARTZ(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartz))
+#define GTK_SEARCH_ENGINE_QUARTZ_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartzClass))
+#define GTK_IS_SEARCH_ENGINE_QUARTZ(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ))
+#define GTK_IS_SEARCH_ENGINE_QUARTZ_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEARCH_ENGINE_QUARTZ))
+#define GTK_SEARCH_ENGINE_QUARTZ_GET_CLASS(obj)                (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEARCH_ENGINE_QUARTZ, GtkSearchEngineQuartzClass))
+
+typedef struct _GtkSearchEngineQuartz GtkSearchEngineQuartz;
+typedef struct _GtkSearchEngineQuartzClass GtkSearchEngineQuartzClass;
+typedef struct _GtkSearchEngineQuartzPrivate GtkSearchEngineQuartzPrivate;
+
+struct _GtkSearchEngineQuartz
+{
+  GtkSearchEngine parent;
+
+  GtkSearchEngineQuartzPrivate *priv;
+};
+
+struct _GtkSearchEngineQuartzClass
+{
+  GtkSearchEngineClass parent_class;
+};
+
+GType            _gtk_search_engine_quartz_get_type (void);
+GtkSearchEngine *_gtk_search_engine_quartz_new      (void);
+
+G_END_DECLS
+
+#endif /* __GTK_SEARCH_ENGINE_QUARTZ_H__ */
index c230f9d2e3d3321e25d3ac164379da7ad0ae9747..691898394159002a23827eedefea46103ac1e658 100644 (file)
@@ -32,7 +32,7 @@
 #include <gtk/gtk.h>
 #include <libtracker-sparql/tracker-sparql.h>
 
-#include "gtksearchenginetracker3.h"
+#include "gtksearchenginetracker3private.h"
 
 #define MINER_FS_BUS_NAME "org.freedesktop.Tracker3.Miner.Files"
 
diff --git a/gtk/gtksearchenginetracker3.h b/gtk/gtksearchenginetracker3.h
deleted file mode 100644 (file)
index 37af1fb..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2020 Red Hat Inc
- *               2005 Mr Jamie McCracken
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- *
- * Author: Carlos Garnacho <carlosg@gnome.org>
- *         Jamie McCracken (jamiemcc@gnome.org)
- *
- * Based on nautilus-search-engine-tracker.h
- */
-
-#ifndef __GTK_SEARCH_ENGINE_TRACKER3_H__
-#define __GTK_SEARCH_ENGINE_TRACKER3_H__
-
-#include "gtksearchengine.h"
-
-G_BEGIN_DECLS
-
-#define GTK_TYPE_SEARCH_ENGINE_TRACKER3 (gtk_search_engine_tracker3_get_type ())
-G_DECLARE_FINAL_TYPE (GtkSearchEngineTracker3,
-                      gtk_search_engine_tracker3,
-                      GTK, SEARCH_ENGINE_TRACKER3,
-                      GtkSearchEngine)
-
-GtkSearchEngine * gtk_search_engine_tracker3_new (void);
-
-G_END_DECLS
-
-#endif /* __GTK_SEARCH_ENGINE_TRACKER3_H__ */
diff --git a/gtk/gtksearchenginetracker3private.h b/gtk/gtksearchenginetracker3private.h
new file mode 100644 (file)
index 0000000..b38e6e3
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2020 Red Hat Inc
+ *               2005 Mr Jamie McCracken
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Author: Carlos Garnacho <carlosg@gnome.org>
+ *         Jamie McCracken (jamiemcc@gnome.org)
+ *
+ * Based on nautilus-search-engine-tracker.h
+ */
+
+#ifndef __GTK_SEARCH_ENGINE_TRACKER3_H__
+#define __GTK_SEARCH_ENGINE_TRACKER3_H__
+
+#include "gtksearchengineprivate.h"
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_SEARCH_ENGINE_TRACKER3 (gtk_search_engine_tracker3_get_type ())
+G_DECLARE_FINAL_TYPE (GtkSearchEngineTracker3,
+                      gtk_search_engine_tracker3,
+                      GTK, SEARCH_ENGINE_TRACKER3,
+                      GtkSearchEngine)
+
+GtkSearchEngine * gtk_search_engine_tracker3_new (void);
+
+G_END_DECLS
+
+#endif /* __GTK_SEARCH_ENGINE_TRACKER3_H__ */